-- GENERATED SPELL FOR [Marauding Crust Burster] --


function spell0_16857(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(31747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16857', 2000, 1)
end

function Sorts_16857(pUnit, Event)
local choix_sorts_16857 = math.random(0, 0)
if choix_sorts_16857 == 0 then
pUnit:RegisterEvent('spell0_16857', 1, 1)
end
end

function mob16857_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16857', math.random(1500, 3000), 1)
end

function mob16857_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16857_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16857_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16857, 1, 'mob16857_Action')
RegisterUnitEvent(16857, 2, 'mob16857_Leave')
RegisterUnitEvent(16857, 3, 'mob16857_Kill')
RegisterUnitEvent(16857, 4, 'mob16857_Die')
